﻿using DC2010.Objects.Base;
using DC2010.Objects.Data;
using DC2010.Objects.Common;

namespace DC2010.Effects
{
    public class I_Recharge_Effect : EffectLogic
    {
        public I_Recharge_Effect(EffectData ed)
            : base(ed)
        {
            ShortName = "RECHARGE";
            LongName = "Recharges item effects...";
            Id = "I_RECHARGE_EFFECT";
            EffectType = EffectType.Instant;
        }

        public override void Instant(BaseObject aInvoker, BaseObject aTarget)
        {
            if (aInvoker is ItemData)
            {
                ItemData aItem = (ItemData)aInvoker;

                //foreach (KeyValue kv in aItem.UsageEffects)
                //{
                //    EffectData ed = Root.I.EffectSystem.GetData(kv.Value);
                //    ed.Charges.Current = ed.Charges.Max; 
                //}
            }

            base.Instant(aInvoker, aTarget);
        }
    }
}
